package com.zr.controller.car;

import com.zr.service.car.CarMessageService;
import com.zr.utils.AjaxResult;
import com.zr.vo.car.CarMessage;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/***
 * @author 王红伟
 * 运输信息控制层
 */
@RestController
@RequestMapping("/carMessage")
public class CarMessageController {
    @Resource
    private CarMessageService carMessageService;

    /**
     * 获取最近运输信息
     *
     * @param
     * @return
     */
    @RequestMapping("/list")
    public AjaxResult listResent() {
        List<CarMessage> carMessageList = carMessageService.listResent();
        return AjaxResult.success(200, "查询成功", carMessageList);
    }

}
